﻿
package com.victim.snake.player
{
	import flash.events.Event;
	

	//玩家类的各种事件
	public class PlayerEvent extends Event{
		public static  const Ready:String="Ready";	//玩家准备事件
		public static  const UnReady:String="UnReady";	//玩家取消准备事件
		public static const AutoReadyChange:String="AutoReady";	//自动准备状态改变事件
		public static const SnakeStyleChange="SnakeStyleChange";	//玩家蛇样式发生改变事件
		public static const SnakeGroupChange="SnakeGroupChange";	//玩家蛇样式发生改变事件
		
		
		public var player:Player=null;
		
		//构造函数 (事件类型字符串，所发生事件的玩家)
		public function PlayerEvent(type:String,player:Player=null):void{
			super(type);
			this.player=player;
		}
		

	}

}